<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\modelled\Modelled */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="modelled-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'category')->dropDownList(array('文章管理'=>'文章管理','会员管理'=>'会员管理'))->label('分类') ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>



    <?= $form->field($model, 'option')->dropDownList(array('简单输入框'=>'简单输入框','长文本输入框'=>'长文本输入框','下拉框'=>'下拉框','单选框'=>'单选框','多选'=>'多选'))->label('字段类型') ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
